package com.sservice.service.service;

import com.sservice.model.entity.OrderShop;

import java.util.List;

/**
 * Created by suweiming on 2018/10/23.
 */
public interface OrderShopService {

    /**
     * 批量增加
     *
     * @param list
     * @return
     */
    int addBatch(List<OrderShop> list);

    int removeById(int id);

    int updateNum(int id, double number);

    /**
     * 更新
     *
     * @param orderShop
     * @return
     */
    int update(OrderShop orderShop);


    /**
     * 根据条件查询order_shop项
     *
     * @param record
     * @return
     */
    List<OrderShop> getOrderShopBy(OrderShop record);

    OrderShop getOrderShopOneBy(OrderShop record);

    /**
     * @param id
     * @return
     */
    OrderShop findById(int id);
}
